package cn.heycm.blog.console.infra.dao.admin;

import cn.heycm.blog.console.domain.admin.repository.AdminRepository;
import cn.heycm.blog.console.infra.dao.admin.entity.AdminProfile;
import cn.heycm.blog.console.infra.dao.admin.mapper.AdminProfileMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

/**
 * @author hey
 * @version 1.0
 * @since 2024/9/17 21:51
 */
@Repository
@AllArgsConstructor
public class AdminRepositoryImpl implements AdminRepository {

    private final AdminProfileMapper adminProfileMapper;

    @Override
    public AdminProfile findByPhoneId(String phoneId) {
        return adminProfileMapper.selectByPhoneId(phoneId);
    }

    @Override
    public boolean save(AdminProfile profile) {
        return false;
    }
}
